<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.js" type="text/javascript"charset="utf-8"></script>
    </head>

    <body>
        <!-- view -->
        <div id="app">
            <h1 v-if="ok">Yes</h1>
            <h1 v-else>No</h1>

            <h1 v-if="type=='A'">A</h1>
            <h1 v-else-if="type=='B'">B</h1>
            <h1 v-else>C</h1>
        </div>


        <script type="text/javascript">
            let app = new Vue({
                el: "#app",
                data: {
                  ok: true,
                  type: 'B'
                }
            })
        </script>
    </body>
</html>